package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;

import java.util.List;

public interface PermissionService {

    void add(Permission permission);
    PageResult pageQuery(QueryPageBean queryPageBean);
    void deleteById(Integer id);
    void edit(Permission permission);
    Permission findById(Integer id);
	List<Permission> findAll();

    List<Integer> findpermissionIdsByroleId(Integer id);
}
